<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="cn.firstsoft.firstframe.web.FirstFrameBeanFactory,
				 org.springside.modules.security.service.logic.SystemLoginThemeManager,
				 org.springside.modules.security.domain.SystemLoginTheme"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<body>

<%
SystemLoginThemeManager systemLoginThemeManager = (SystemLoginThemeManager) FirstFrameBeanFactory.getBean("systemLoginThemeManager");
SystemLoginTheme systemLoginTheme = systemLoginThemeManager.getSystemLoginTheme();
if(systemLoginTheme != null){
%>
	<c:set var="login_url" value="new/login.jsp?login_error=${param.login_error}" />
<%}else{%>
	<c:set var="login_url" value="loginFullScreen.jsp?login_error=${param.login_error}" />
<%} %>


<%
if(Constants.IS_FULLSCREEN){
%>
	<script language="javascript">
		function init(){
		  	var x=window.screen.availWidth-5;
			var y=window.screen.availHeight-10;
		    window.opener = null;
			window.menubar=true;
		    window.open('','_top');
		    var isOpen = window.open('${login_url}','_blank','top=0,left=0,status=yes,menubar=no,scrollbars=yes,resizable=no,width='+x+',height='+y);
		  	if(isOpen==null){
		  		location.href="${login_url}";
		  	}else{
		  		window.close();
		  	}
		}
		init();
	</script>
<%}else{%>
	<jsp:forward page="${login_url}"/>
<%}%>

</body>
</html>
